(()=>{"use strict";const e="-show-tooltip";function t(e,t){var n,o;null!=e&&window.ShifuConfig.pageviewId?(e.pageview_id=window.ShifuConfig.pageviewId,function(e){var t=new XMLHttpRequest;t.open("POST",window.ShifuConfig.domain+"/hermes-service/topic/shifu",!0),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify(e))}(e)):("track-init"==t&&!window.ShifuConfig.trackInitFailed||(n="invalidShifuPush",o={error:null==e?"NullShifuObject":"EmptyPageviewId",country:window.ShifuConfig.country,location:window.location.href,version:window.ShifuConfig.version,isAgency:window.ShifuConfig.partner.isAgency,isWL:window.ShifuConfig.partner.isWL,trackingId:t||"undefined",ab:JSON.stringify(window.ShifuConfig.ab),initFailedTwice:window.ShifuConfig.trackInitFailed},void 0!==window.newrelic&&"function"==typeof window.newrelic.addPageAction&&(o=o||{},newrelic.addPageAction(n,o))),"track-init"==t&&window.ShifuConfig.setTrackInitFailed())}var n="showedIncentives",o=[];function i(e){var t=function(){var e=JSON.parse(localStorage.getItem(n));return e||(localStorage.setItem(n,JSON.stringify(o)),e=o),e}(),i=t.findIndex((function(t){return e===(null==t?void 0:t.name)}));-1!==i?t[i].lastDateShowed=r():t.push({name:e,lastDateShowed:r()}),localStorage.setItem(n,JSON.stringify(t))}function r(){var e=new Date,t=e.getFullYear(),n=("0"+(e.getMonth()+1)).slice(-2),o=("0"+e.getDate()).slice(-2);return"".concat(t,"-").concat(n,"-").concat(o)}function c(n,o){n.classList.remove(e),t({type:"close",eventtype:"event",item:"webNotifications",data:{bucket_info:window.ShifuConfig.cesBucketInfo}}),i(o)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,t){for(var n=0;n